package com.zline.foodraise.entity;

/**
 * Created by heshantao on 15/11/12.
 * 每条交易的实体
 */
public class TradingBean {
    //金额
    double amount;
    //账户余额
    double balance;
    //交易产生的时间戳
    long createTimeStamp;
    //操作类型(1自己充值;2他人充值;3筹支出;4筹退款;5;吃支出;6吃退款;7商品分销奖励)
    int operateType;
    //用户ID
    long userId;

    public TradingBean() {
    }

    public TradingBean(double amount, double balance, long createTimeStamp,
                       int operateType, long userId) {
        this.amount = amount;
        this.balance = balance;
        this.createTimeStamp = createTimeStamp;
        this.operateType = operateType;
        this.userId = userId;
    }

    public double getAmount() {
        return amount;
    }

    public void setAmount(double amount) {
        this.amount = amount;
    }

    public double getBalance() {
        return balance;
    }

    public void setBalance(double balance) {
        this.balance = balance;
    }

    public long getCreateTimeStamp() {
        return createTimeStamp;
    }

    public void setCreateTimeStamp(long createTimeStamp) {
        this.createTimeStamp = createTimeStamp;
    }

    public int getOperateType() {
        return operateType;
    }

    public void setOperateType(int operateType) {
        this.operateType = operateType;
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }
}
